package com.unipay.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unipay.model.system.SysRole;
import com.unipay.model.vo.AssginRoleVo;
import com.unipay.model.vo.SysRoleQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @BelongsProject: unipay-auth-parent
 * @Author: cmy
 * @CreateTime: 2023-02-01  20:47
 * @Description: TODO
 */

public interface SysRoleService extends IService<SysRole> {

    // 3、分页查询
    IPage<SysRole> selPage(Page<SysRole> pageParam, SysRoleQueryVo sysRoleQueryVo);

    // 根据用户获取角色数据
    Map<String, Object> getRolesByUserId(Long userId);
    // 根据用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);
}
